Coverage Report

Created: 2025-05-27 14:32

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
D:\a\vk-layer-for-rust\vk-layer-for-rust\vulkan-layer-macros\src\dummy.rs
Line
Count
Source
1
// Copyright 2023 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//     http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
use proc_macro2::TokenStream as TokenStream2;
16
use quote::quote;
17
use syn::Type;
18
19
0
pub fn dummy_autoinfo_impl(name: &Type, target_trait: &TokenStream2) -> TokenStream2 {
20
0
    quote! {
21
0
        impl #target_trait for #name {
22
0
            type HooksType = Self;
23
0
            type HooksRefType<'a> = &'a Self;
24
0
            fn hooked_commands() -> &'static [::vulkan_layer::LayerVulkanCommand] {
25
0
                unimplemented!()
26
0
            }
27
0
28
0
            fn hooks(&self) -> Self::HooksRefType<'_> {
29
0
                unimplemented!()
30
0
            }
31
0
        }
32
0
    }
33
0
}